package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 社工相册对象 jiajia_worker_photo
 * 
 * @author knd
 * @date 2021-10-13
 */
public class JiajiaWorkerPhoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 路径 */
    @Excel(name = "路径")
    private String url;

    /** 社工id */
    @Excel(name = "社工id")
    private Long wid;

    /** 是否删除0否1是 */
    @Excel(name = "是否删除0否1是")
    private Long del;

    /** 类型1图片2视屏 */
    @Excel(name = "类型1图片2视屏")
    private Long type;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm.ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /**社工名称*/
    private String wName;

    public String getwName() {
        return wName;
    }

    public void setwName(String wName) {
        this.wName = wName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setWid(Long wid) 
    {
        this.wid = wid;
    }

    public Long getWid() 
    {
        return wid;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("url", getUrl())
            .append("wid", getWid())
            .append("del", getDel())
            .append("type", getType())
            .append("sort", getSort())
            .append("addtime", getAddtime())
            .toString();
    }
}
